<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>乐淘首页</title>
    <link rel="stylesheet" href="./lib/bootstrap/css/bootstrap.css">
    <link rel="stylesheet" href="./lib/bootstrap-validator/css/bootstrapValidator.min.css">
    <link rel="stylesheet" href="./lib/nprogress/nprogress.css">
    <link rel="stylesheet" href="./css/common.css">
</head>

<body>
    <div class="lt-aside">
        <div class="brand"><a href="#">黑马商城</a></div>
        <div class="user">
            <img src="./images/default.png" alt="">
            <p>超级管理员</p>
        </div>
        <div class="nav">
            <ul>
                <li><a href="user.html"><i class="glyphicon glyphicon-user"></i> 用户管理</a></li>
                <li>
                    <a href="javascript:;" class="category"><i class="glyphicon glyphicon-list"></i>分类管理</a>
                    <div class="child  my-hide" >
                        <a href="first.html">一级分类</a>
                        <a href="second.html">二级分类</a>
                    </div>
                </li>
                <li><a href="product.html"><i class="glyphicon glyphicon-tags"></i>商品管理</a></li>
            </ul>
        </div>
    </div>
    <div class="lt-main pl-180">
        <div class="lt-top pl-180">
            <a href="#" class="pull-left icon_menu"><i class="glyphicon glyphicon-align-justify  "></i></a>
            <a href="#" class="pull-right icon_logout"><i class="glyphicon glyphicon-log-out"></i></a>
        </div>
        <div class="lt-content">
            <!-- 路径导航 -->
            <ol class="breadcrumb">
                <li><a href="#">后台管理</a></li>
                <li>分类管理</li>
                <li class="active">一级管理</li>
            </ol>
            <button class="btn btn-default mb_20 ml-20" id="addBtn" >添加分类</button>
            <table class="table table-bordered table-hover ">
                <thead>
                    <tr>
                        <th width='20%'>序号</th>
                        <th width='80%'>一级分类名</th>
                    </tr>
                </thead>
                <tbody>
                    <!-- 模板引擎动态渲染数据 -->

                </tbody>
            </table>
            <div class="pull-right">
              <ul id="paginator"></ul>
            </div>
        </div>
    </div>
    <!-- 禁用启用模态框 -->
    <div class="modal fade" id="addModal">
        <div class="modal-dialog modal-sm">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                            aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title">添加分类</h4>
                </div>
                <div class="modal-body">
                   <form id="form">
                       <div class="form-group">
                           <input type="text" class="form-control"  placeholder="请输入一级分类" name="categoryName" >
                       </div>
                   </form>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                    <button type="submit" class="btn btn-primary" id="submitBtn" form='form'>添加</button>
                </div>
            </div>
        </div>
    </div>
    <script type="text/html" id="userTmp1">
        {{ each rows v i }}
        <tr>
            <td>{{ (page-1)*size  + i+1 }}</td>
            <td>{{ v.categoryName}}</td>
        </tr>
        {{ /each }}
    </script>
    <script src="./lib/jquery/jquery.min.js"></script>
    <script src="./lib/bootstrap/js/bootstrap.min.js"></script>
    <script src="./lib/bootstrap-validator/js/bootstrapValidator.min.js"></script>
    <script src="./lib/nprogress/nprogress.js"></script>
    <script src="./lib/echarts/echarts.min.js"></script>
    <script src="./lib/artTemplate/template-web.js"></script>
    <script src="./lib/bootstrap-paginator/bootstrap-paginator.min.js"></script>
    <script src="./js/first.js"></script>
    <script src="./js/common.js"></script>
</body>

</html>